    <script>

        var authMessage = '<?php echo str_replace("'", "\'", $this->Session->flash("auth")) ;?>';
        if (authMessage!="") setFlash($(authMessage).html());
        
        var infoMessage = '<?php echo str_replace("'", "\'", $this->Session->flash()) ;?>';
        if (infoMessage!="") setFlash($(infoMessage).html());

        var warnMessage = '<?php echo str_replace("'", "\'", $this->Session->flash("warning"));?>';
        if (warnMessage!="") setFlash($(warnMessage).html(),"warning");

        var errMessage ='<?php echo str_replace("'", "\'", $this->Session->flash("error"));?>';
        if (errMessage!="") setFlash($(errMessage).html(),'error');

        var logMessage ='<?php echo str_replace("'", "\'", $this->Session->flash("notice"));?>';
        if (logMessage!="") setFlash($(logMessage).html());
    </script>
    
	<!-- <div id="message" style="padding-left: 30px;padding-right: 30px;">
		<?php 
		$infoMessage = $this->Session->flash(); 
		if (!empty($infoMessage)) {?>
			<div class="alert alert-info">
			  <button type="button" class="close" data-dismiss="alert">&times;</button>
			  <p class="text-center"><?php echo $infoMessage; ?></p>
			</div>
		<?php } ?>
	
		<?php 
		$warningMessage = $this->Session->flash(LOG_WARNING); 
		if (!empty($warningMessage)) {?>
			<div class="alert alert-block">
			  <button type="button" class="close" data-dismiss="alert">&times;</button>
			  <p class="text-center"><?php echo $warningMessage; ?></p>
			</div>
		<?php } ?>
	
		<?php 
		$errorMessage = $this->Session->flash(LOG_ERR); 
		if (!empty($errorMessage)) {?>
			<div class="alert alert-error">
			  <button type="button" class="close" data-dismiss="alert">&times;</button>
			  <p class="text-center"><?php echo $errorMessage; ?></p>
			</div>
		<?php } ?>
	
		<?php 
		$successMessage = $this->Session->flash(LOG_NOTICE); 
		if (!empty($successMessage)) {?>
			<div class="alert alert-success">
			  <button type="button" class="close" data-dismiss="alert">&times;</button>
			  <p class="text-center"><?php echo $successMessage; ?></p>
			</div>
		<?php } ?>
	</div> -->